package com.huike.crmlog.dtos;

import lombok.Data;

@Data
public class LogPageDto {
    private Integer page;
    private Integer pageSize;
    private String createTime;
    private String keyWords;

    public void checkParam() {
        if (this.page == null || this.page < 0) {
            setPage(1);
        }
        if (this.pageSize == null || this.pageSize < 0 || this.pageSize > 100) {
            setPageSize(10);
        }
    }
}
